export function formatDate(dateString) {
  if (!dateString) {
    return ''
  }

  const parsed = new Date(dateString)

  if (Number.isNaN(parsed.getTime())) {
    return ''
  }

  return parsed.toLocaleDateString('zh-CN', {
    year: 'numeric',
    month: 'long',
    day: 'numeric',
  })
}

